const debounce = (fanc, daliy = 500) => {
    if (window.timer) {
        clearTimeout(window.timer)
    }
    window.timer = setTimeout(() => {
        fanc()
    }, daliy)
}
export {
    debounce
}